package com.javalong.affairs.activity;

import android.os.Bundle;
import android.view.View;
import android.widget.Button;

import com.javalong.affairs.R;
import com.javalong.affairs.manager.IntentManager;
import com.lidroid.xutils.ViewUtils;
import com.lidroid.xutils.view.annotation.ContentView;
import com.lidroid.xutils.view.annotation.ViewInject;
@ContentView(R.layout.activity_start)
public class StartActivity extends BaseActivity{
	@ViewInject(R.id.bt_login)
	private Button bt_login;
	@ViewInject(R.id.bt_register)
	private Button bt_register;
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		ViewUtils.inject(this);
		bt_login.setOnClickListener(this);
		bt_register.setOnClickListener(this);
	}
	@Override
	public void onClick(View v) {
		super.onClick(v);
		switch (v.getId()) {
		case R.id.bt_login:
			IntentManager.doActivity(StartActivity.this,
					LoginActivity.class);
			break;
		case R.id.bt_register:
			IntentManager.doActivity(StartActivity.this,
					RegisterActivity.class);
			break;
		default:
			break;
		}
	}
}
